package com.ygxsk.carhome.retrofit;

import android.app.Activity;

import java.util.HashMap;

/*
 * @Author:itchenqi
 * @Time:2022-10-26  10:03
 * @Description:上传日志需要的信息,或者展示提示 或者不提示的信息
 */
public class AddLogUpLoadInfo {


    /**
     * 是哪个界面过来的
     */
    private Activity activity;

    /**
     * 接口的标识内容，区分是哪个接口来的
     */
    private int what;

    //如果服务器的响应发生了异常，那么是展示toast还是覆盖该页面*/
    //private int responseShowPageOrToast;

    /**
     * 接口名的标识内容
     */
    private String urlPath;

    /**
     * 接口请求的方式
     */
    private String requestMethod;

    /**
     * 接口上传的参数内容,在入口处 有拦截，能走到这里就一定不是空值。
     */
    private HashMap<String, Object> hashMapParameter = new HashMap<>();

    /**
     * 报错的信息是否展示给用户
     */
    private boolean isToastToUser;

    //是否要给用户醒目的弹窗提示
    private boolean isAlertToUser;

    //--------------------------------------------------------------------------------


    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }

    public boolean isToastToUser() {
        return isToastToUser;
    }

    public void setToastToUser(boolean toastToUser) {
        isToastToUser = toastToUser;
    }

    public int getWhat() {
        return what;
    }

    public void setWhat(int what) {
        this.what = what;
    }

//    public int getResponseShowPageOrToast() {
//        return responseShowPageOrToast;
//    }
//
//    public void setResponseShowPageOrToast(int responseShowPageOrToast) {
//        this.responseShowPageOrToast = responseShowPageOrToast;
//    }


    public boolean isAlertToUser() {
        return isAlertToUser;
    }

    public void setAlertToUser(boolean alertToUser) {
        isAlertToUser = alertToUser;
    }

    public String getUrlPath() {
        return urlPath;
    }

    public void setUrlPath(String urlPath) {
        this.urlPath = urlPath;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public HashMap<String, Object> getHashMapParameter() {
        return hashMapParameter;
    }

    public void setHashMapParameter(HashMap<String, Object> hashMapParameter) {
        this.hashMapParameter = hashMapParameter;
    }
}
